package org.xqyy.eval.service;

import org.xqyy.eval.model.*;

import java.util.List;
import java.util.Map;

/**
 * Created by luoxiaoming on 16-12-25.
 */
public interface ITestPaperService {

    public void add(Map<String, Object> params);

    public void modify(Map<String, Object> params);

    public void delete(Map<String, Object> params);

    public Map<String, Object> loadOne(long paperId);

    public List<Map<String, Object>> load(Map<String, Object> params);

    public void addDetail(Map<String, Object> res);

    public void deleteDetail(Map<String, Object> res);

    public  List<TTestPaper> selectAllPaper();

    /**
     * 待评价科室绑定调查问卷
     * @param deptId 评价科室
     * @param evalDeptIdList 待评价科室code集合
     * @param paperId 调查问卷Id
     * @return
     */
    public  boolean addEvalDeptPaper(String deptId, List<String> evalDeptIdList,Integer paperId);

    /**
     * 待评价科室绑定调查问卷
     * @param referdeptid  参考部门id
     * @param deptId 部门id
     * @return
     */
    public  boolean copyEvalDeptPaper(String referdeptid, List<String> deptId);

    /**
     * 添加满意度调查问卷
     * @param testPaper
     * @param  questions
     * @return
     */
    public  Boolean addTestPaper(TTestPaper testPaper, List<TQuestion> questions) ;

    /**
     * 删除满意度调查问卷
     * @param testPaper
     * @return
     */
    public  Boolean delTestPaper(TTestPaper testPaper) ;

    /**
     * 查询满意度满意度调查问卷
     * @param testPaper
     * @return
     */
    public  TTestPaper findTestPaperById(TTestPaper testPaper);

    /**
     * 修改满意度满意度调查问卷
     * @param testPaper
     * @return
     */
    public  Boolean updateTestPaper(TTestPaper testPaper);
}
